import request from '@/utils/request'

// 查询扶贫物资管理列表
export function listRuralPovertyMaterials(query) {
  return request({
    url: '/rural/RuralPovertyMaterials/list',
    method: 'get',
    params: query
  })
}

// 查询扶贫物资管理详细
export function getRuralPovertyMaterials(id) {
  return request({
    url: '/rural/RuralPovertyMaterials/' + id,
    method: 'get'
  })
}

// 新增扶贫物资管理
export function addRuralPovertyMaterials(data) {
  return request({
    url: '/rural/RuralPovertyMaterials',
    method: 'post',
    data: data
  })
}

// 修改扶贫物资管理
export function updateRuralPovertyMaterials(data) {
  return request({
    url: '/rural/RuralPovertyMaterials',
    method: 'put',
    data: data
  })
}

// 删除扶贫物资管理
export function delRuralPovertyMaterials(id) {
  return request({
    url: '/rural/RuralPovertyMaterials/' + id,
    method: 'delete'
  })
}
